home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
Joystick.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-01
|
396b
|
26 lines
#ifndef ALJOYSTICK_H
#define ALJOYSTICK_H
extern "C" {
#include <linux/joystick.h>
}
#include "control.h"
#include "point.h"
class
Joystick : public Control
{
private:
void init(int stick);
void waitfire(void);
int joyfd;
struct JS_DATA_TYPE js_data;
point centre, topleft, botright;
int right,left,down,up;
public:
Joystick(int j=1);
void calibrate(void);
void fetch(void);
};
#endif